import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import './styles/index.less'
// 引入ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 封装axios 然后引入
import axios from './utils/request.js'

import MyBreadcrumb from './components/MyBreadcrumb.vue'
import MyChannel from './components/MyChannel.vue'
import MyCover from './components/MyCover.vue'
Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.component('MyBreadcrumb', MyBreadcrumb)
Vue.component('MyChannel', MyChannel)
Vue.component('MyCover', MyCover)
// 给原型链挂载axios方法
Vue.prototype.$axios = axios
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
